package com.infopulse;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * User: Vadim
 * Date: 18.05.14
 * Time: 15:19
 * To change this template use File | Settings | File Templates.
 */
public class BinarySearch {

    public static void bubbleSort(int[] arr){
        for(int i = arr.length-1; i > 0; i--){
            for(int j = 0; j < i; j++){
                if(arr[j] > arr[j+1]){
                    int tmp = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = tmp;
                }
            }
        }
    }
}
